package com.nowcoder.community.dao;/**
 * @description:
 * @Author HP
 * @create 2021/12/12 18:08
 */

import com.nowcoder.community.entity.User;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author HP
 * @create 2021-12-12 18:08
 * @desc 对数据库User表进行增删改查操作
 **/
@Mapper
public interface UserMapper {

    User selectById(int id);

    User selectByName(String username);

    User selectByEmail(String email);

    int insertUser(User user);

    int updateStatus(int id,int status);

    int updateHeader(int id,String headerUrl);

    int updatePassWord(int id,String password);
}
